/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package edu.nii.qlks.ControlLayer;

import edu.nii.qlks.BusinessLogicLayer.BCMatDoBLL;
import edu.nii.qlks.DataTransferObject.BCMatDoInfo;
import java.util.ArrayList;

/**
 *
 * @author MARS_NHO
 */
public class BCMatDoControl {
    BCMatDoBLL BCMatDo = new BCMatDoBLL();
    
 
    public ArrayList LayDS() throws Exception{
        return BCMatDo.LayDS();
    }
        
    public void Insert(BCMatDoInfo baoCaoMatDoInfo) throws Exception{
        BCMatDo.Insert(baoCaoMatDoInfo);
    }
    
    public void Update(BCMatDoInfo baoCaoMatDoInfo) throws Exception{
        BCMatDo.Update(baoCaoMatDoInfo);
    }
    
    public void Delete(BCMatDoInfo baoCaoMatDoInfo) throws Exception{
        BCMatDo.Delete(baoCaoMatDoInfo);
    }
    
    public String TaoMaTuDong(String maGoc, int batDau){
         return BCMatDo.TaoMaTuDong(maGoc, batDau);
    }
    
    public ArrayList LayDS_MaPhong(String MaPhong, int ThangBC, int NamBC) throws Exception{
        //return BCMatDo.LayDS_MaPhong(MaPhong, ThangBC, NamBC);
        return null;
    }
}
